srcdir       = @srcdir@
top_builddir = @top_builddir@
top_srcdir   = @top_srcdir@

include ../Makefile.ext

SCM_CATEGORY = gauche

LIBFILES = gauche--termios.$(SOEXT)
SCMFILES = termios.sci

OBJECTS = termios.$(OBJEXT) gauche--termios.$(OBJEXT)

GENERATED = Makefile
XCLEANFILES =  gauche--termios.c termios.sci

all : $(LIBFILES)

gauche--termios.$(SOEXT) : $(OBJECTS)
	$(MODLINK) gauche--termios.$(SOEXT) $(OBJECTS) $(EXT_LIBGAUCHE) $(LIBS)

gauche--termios.c termios.sci : termios.scm
	$(PRECOMP) -e -P -o gauche--termios $(srcdir)/termios.scm

install : install-std

